<?php
    $_productCollection=$this->getLoadedProductCollection();
    $_helper = $this->helper('catalog/output');
?>

<div class="amshopby-page-container">
        <?php if(!$_productCollection->count()): ?>
        <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
        <?php else: ?>
            
            <?php echo $this->getToolbarHtml() ?>
            <?php // List mode ?>
            <?php $_iterator = 0; ?>
            <div class="product">
                <ul class="list-product clearfix">
                    <?php foreach ($_productCollection as $_product): ?>
                    <?php $product = Mage::getModel("catalog/product")->load($_product->getId()); ?>
                    <li>
                        <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
                        <div class="product-summary">
                            <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(PRODUCTLIST_WIDTH,PRODUCTLIST_HEIGHT); ?>"   alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
                            <!--<a href="product-details.html"><img src="skin/frontend/nbs/images/img-product.jpg" alt="" /></a>-->
                            <div class="product-info">
                                <p class="name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></p>
                                <div class="float">
                                    <?php $categoryIds = $_product->getCategoryIds();  ?>

                                    <p><strong><?php echo $this->__("Brand") ?> :</strong> <?php echo  $product->getAttributeText('manufacturer') ?> </p>
                                    <p><strong><?php echo $this->__("Part Number") ?>#: </strong> <?php echo $_product->getSku() ?> </p>
                                    <p><strong><?php echo $this->__("Model") ?>#:</strong> <?php echo $product->getModelNumber() ?> </p>

                                    <?php if(!empty($categoryIds)): ?>
                                        <p><?php echo $this->__("Catalog Pg #:") ?> <?php echo $categoryIds[0] ?></p>
                                    <?php endif;?>
                                    <p class="under"></p>
                                </div>
                                <div class="btn"><a href="<?php echo $_product->getProductUrl() ?>" class="view-detail"><?php echo $this->__("View Deatails") ?></a></div>
                            </div>
                        </div>

                    </li>
                    <?php endforeach; ?>

                </ul>

            </div>
        <?php endif; ?>
    
    <div style="display:none" class="amshopby-overlay"><img src="<?php echo $this->getSkinUrl('images/amshopby-overlay.gif')?>" width="32" height="32"/></div>
</div>
    